package com.xmmxjy.config;

import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jms.annotation.EnableJms;

import javax.jms.Queue;

@Configuration
@EnableJms
public class ActiveMQConfig {


    /**
     * 配置队列
     * @return
     */
    @Bean("testQueue")
    public Queue testQueue() {
        return new ActiveMQQueue("test") ;
    }
}